# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc


###########################################################################
## Class RandomPanel
###########################################################################

class GeneratePanel(wx.Panel):

    def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.Size(1000, 400), style=wx.TAB_TRAVERSAL,
                 name=wx.EmptyString):
        wx.Panel.__init__(self, parent, id=id, pos=pos, size=size, style=style, name=name)

        bSizer8 = wx.BoxSizer(wx.VERTICAL)

        self.m_staticText15 = wx.StaticText(self, wx.ID_ANY, u"UUID", wx.DefaultPosition, wx.DefaultSize, 0)
        self.m_staticText15.Wrap(-1)

        bSizer8.Add(self.m_staticText15, 0, wx.ALL, 5)

        bSizer9 = wx.BoxSizer(wx.HORIZONTAL)

        self.edit_uuid_result = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(-1, 180),
                                            wx.TE_MULTILINE)
        bSizer9.Add(self.edit_uuid_result, 1, wx.ALL, 5)

        self.m_staticText4 = wx.StaticText(self, wx.ID_ANY, u"条数", wx.DefaultPosition, wx.DefaultSize, 0)
        self.m_staticText4.Wrap(-1)

        bSizer9.Add(self.m_staticText4, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)

        self.edit_uuid_num = wx.TextCtrl(self, wx.ID_ANY, u"5", wx.DefaultPosition, wx.Size(50, -1), 0)
        bSizer9.Add(self.edit_uuid_num, 0, wx.ALIGN_CENTER | wx.ALL, 5)

        self.m_button8 = wx.Button(self, wx.ID_ANY, u"生成", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer9.Add(self.m_button8, 0, wx.ALIGN_CENTER | wx.ALL, 5)

        bSizer8.Add(bSizer9, 0, wx.EXPAND, 5)

        self.m_staticText16 = wx.StaticText(self, wx.ID_ANY, u"随机生成一个复杂的密码", wx.DefaultPosition,
                                            wx.DefaultSize, 0)
        self.m_staticText16.Wrap(-1)

        bSizer8.Add(self.m_staticText16, 0, wx.ALL, 5)

        bSizer27 = wx.BoxSizer(wx.HORIZONTAL)

        self.edit_complex_pwd = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(-1, -1), 0)
        bSizer27.Add(self.edit_complex_pwd, 1, wx.ALL, 5)

        self.m_staticText17 = wx.StaticText(self, wx.ID_ANY, u"位数", wx.DefaultPosition, wx.DefaultSize, 0)
        self.m_staticText17.Wrap(-1)

        bSizer27.Add(self.m_staticText17, 0, wx.ALIGN_CENTER | wx.ALL, 5)

        self.edit_pwd_num = wx.TextCtrl(self, wx.ID_ANY, u"16", wx.DefaultPosition, wx.Size(50, -1), 0)
        bSizer27.Add(self.edit_pwd_num, 0, wx.ALL, 5)

        self.m_button19 = wx.Button(self, wx.ID_ANY, u"生成", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer27.Add(self.m_button19, 0, wx.ALL, 5)

        bSizer8.Add(bSizer27, 0, wx.EXPAND, 5)

        self.SetSizer(bSizer8)
        self.Layout()

        # Connect Events
        self.m_button8.Bind(wx.EVT_BUTTON, self.generate_uuid)
        self.m_button19.Bind(wx.EVT_BUTTON, self.buildComplexPwd)

    def __del__(self):
        pass

    # Virtual event handlers, override them in your derived class
    def generate_uuid(self, event):
        event.Skip()

    def buildComplexPwd(self, event):
        event.Skip()
